<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>题库详情</title>
	<meta name="decorator" content="default"/>
	<%--<script type="text/javascript">--%>
		<%--$(document).ready(function() {--%>
			<%--//$("#name").focus();--%>
			<%--$("#inputForm").validate({--%>
				<%--submitHandler: function(form){--%>
					<%--loading('正在提交，请稍等...');--%>
					<%--form.submit();--%>
				<%--},--%>
				<%--errorContainer: "#messageBox",--%>
				<%--errorPlacement: function(error, element) {--%>
					<%--$("#messageBox").text("输入有误，请先更正。");--%>
					<%--if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){--%>
						<%--error.appendTo(element.parent().parent());--%>
					<%--} else {--%>
						<%--error.insertAfter(element);--%>
					<%--}--%>
				<%--}--%>
			<%--});--%>
		<%--});--%>
	<%--</script>--%>
</head>
<body>
	<ul class="nav nav-tabs">
		<li><a href="${ctx}/resource/resourceCourse/">题库列表</a></li>
		<li class="active"><a href="${ctx}/resource/resourceRepertory/detail?id=${resourceRepertory.id}">题库详情</a></li>
	</ul><br/>
	<form:form id="inputForm" modelAttribute="resourceRepertory" action="" method="post" class="form-horizontal">
		<sys:message content="${message}"/>
		<div class="control-group">
			<label class="control-label">题库名称：</label>
			<div class="controls">
				<form:input name="repertoryName" path="repertoryName"  htmlEscape="false" maxlength="64" class="input-xlarge required" readonly="true"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">题库属性：</label>
			<div class="controls">
				<form:select path="repertoryAttribute" name="repertoryAttribute" class="input-xlarge required" disabled="true">
					<form:option value="" label=""/>
					<form:options items="${fns:getDictList('resource_repertory_attribute')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">题目：</label>
			<div class="controls">
				<table id="contentTable" class="table table-striped table-bordered table-condensed">
					<thead>
					<tr>
						<th>题目序号</th>
						<th>题目名称</th>
					</tr>
					</thead>
					<tbody>
					<c:forEach items="${page.list}" var="resourceQuestion" varStatus="status">
					<tr>
						<td>
								${status.count}
						</td>
						<td>
							    ${resourceQuestion.questionName}
						</td>


					</tr>
					</c:forEach>
					</tbody>
				</table>
				<div class="pagination">${page}</div>
			</div>
		</div>
		<div class="form-actions">
			<%--<input id="btnSubmit" class="btn btn-primary" type="button" value="课程列表查看" onclick="window.location.href='${ctx}/resource/resourceCourseware/findPageByCourseId?courseId=${resourceCourse.id}'"/>&nbsp;--%>
			<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
		</div>
	</form:form>

</body>
</html>